<template>
  <view>
    <my-login v-if="!token"></my-login>
    <my-userinfo v-else></my-userinfo>
  </view>
</template>

<script>
  import badgeMix from "../../mixins/tabbar-badge.js"
  import {mapState} from 'vuex'
  export default {
    mixins: [badgeMix],
    
    data() {
      return {

      }
    },
    methods: {

    },
    computed: {
      // 2. 从 m_user 模块中导入需要的 token 字符串
          ...mapState('m_user', ['token']),
    }
  }
</script>

<style>

</style>
